package com.demo.resourcecode.c5;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

public class BeanCurrentlySetterTest {

	public static void main(String[] args) {
		BeanFactory bf = new XmlBeanFactory(new ClassPathResource("beanCurrentlySetter.xml"));
		//BeanFactory bf = new XmlBeanFactory(new ClassPathResource("beanCurrentlyConstruct.xml"));
		System.out.println(bf.getBean(TestA.class));
	}

}
